﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Furion.DatabaseAccessor;

namespace Project1.Core
{
    public class SysLog:IEntity
    {
        /// <summary>
        /// Id
        /// </summary>
        [Key]
        public long Id { get; set; }

        /// <summary>
        /// 记录器类别名称
        /// </summary>
        public string LogName { get; set; }

        /// <summary>
        /// 日志级别
        /// </summary>
        public string LogLevel { get; set; }

        /// <summary>
        /// 事件 Id
        /// </summary>
        public string EventId { get; set; }

        /// <summary>
        /// 异常对象
        /// </summary>
        public string Exception { get; set; }

        /// <summary>
        /// 日志记录时间
        /// </summary>
        public DateTime LogDateTime { get; set; }

        /// <summary>
        /// 线程 Id
        /// </summary>
        public int ThreadId { get; set; }

        /// <summary>
        /// 请求/跟踪 Id
        /// </summary>
        public string TraceId { get; set; }
    }
}
